package com.study.modules.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.study.modules.sys.model.dto.SysUserDTO;
import com.study.modules.sys.model.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author Mr.Du
 * @Date 2021/10/16 8:56
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUserDTO> selectUserList(@Param("status") String status, Page<SysUser> page);

    SysUser selectUserById(@Param("id") Long id);

    SysUser selectByLoginName(@Param("loginName")String loginName);

    SysUser selectUserByLoginName(@Param("loginName") String loginName);
}
